package net.bwie.jtp.service.service.Impl;

import net.bwie.jtp.service.bean.DwsLogPageViewWindowReport;
import net.bwie.jtp.service.bean.TrafficPvReport;
import net.bwie.jtp.service.bean.TrafficUvReport;
import net.bwie.jtp.service.mapper.TrafficChannelStatsMapper;
import net.bwie.jtp.service.service.TrafficChannelStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: fh
 * @Date: 2025/5/21
 */
@Service
public class TrafficChannelStatsServiceImpl implements TrafficChannelStatsService {
    // 自动装在mapper 接口实现类
    @Autowired
    TrafficChannelStatsMapper trafficChannelStatsMapper;

    @Override
    public List<TrafficUvReport> getUvCount(String date) {
        return trafficChannelStatsMapper.selectUvCount(date);
    }

    @Override
    public List<TrafficPvReport> getPvCount(String date) {
        return trafficChannelStatsMapper.selectPvCount(date);
    }

    @Override
    public List<DwsLogPageViewWindowReport> getPageAll(String date) {
        return trafficChannelStatsMapper.selectPageAll(date);
    }

}
